package com.cjy.userReport.service.repair;

import com.base.common.entity.RepairTicket;
import com.base.common.persistent.model.Ticket;
import com.cjy.common.bean.Files;
import com.cjy.userReport.service.base.TicketBaseService;

import java.util.List;

/**
 * 通知信息service
 * 
 * @author Administrator
 *
 */
public interface RepairService extends TicketBaseService{
	
	/**
	 * 根据userId获取 维修工单列表
	 * 
	 * @param userId
	 * @param page
	 * @return
	 */
	List<RepairTicket> getRepairMessagesByUser(int userId, int page);

	/**
	 * 提交维修工单
	 * 
	 * @param ticket 
	 * @param files
	 * @param basePath
	 * @param bid 
	 * @return
	 */
	String subRepairMessage(Ticket ticket, Files files, String basePath, int bid);

	/**
	 * 更新工单
	 * 
	 * @param ticket
	 * @return
	 */
	@Override
	int updateTicketByTicketId(Ticket ticket);

}
